package com.yaorange.certificate.controller.wxapi;

import com.yaorange.certificate.service.INjtCertificateService;
import com.yaorange.certificate.vo.BatchPrintCertificateVo;
import com.yaorange.common.core.controller.BaseController;
import com.yaorange.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 小程序api
 *
 * @author coach tam
 * @email 327395128@qq.com
 * @values 坚持灵活 灵活坚持
 * @since 2025/1/16
 */
@RestController
@RequestMapping("/api/certificate")
public class NjtCertificateAPI extends BaseController {

    @Autowired
    private INjtCertificateService njtCertificateService;
    @PostMapping("/batchCode")
    public AjaxResult batchCode(@RequestBody BatchPrintCertificateVo batchPrintCertificateVo){
        List<String> codeList = njtCertificateService.batchCode(batchPrintCertificateVo);
        return AjaxResult.success(codeList);
    }

}
